package com.njlime.cms.repository.app;

import com.njlime.cms.entities.CommunityCommentUp;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Dean on 2017-10-10.
 */
public interface AppCommunityCommentUpDao extends JpaRepository<CommunityCommentUp, Integer>,JpaSpecificationExecutor<CommunityCommentUp> {
    PageBean list(PageBean pageBean, CommunityCommentUp info);
    int userUpCount(int commentId, int userId);
    int del(int commentId,Integer userId);
}
